diff options
| author | joonhoekim <26rote@gmail.com> | 2025-07-02 04:46:24 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-07-02 04:46:24 +0000 |
| commit | a42873419d14652d3639d2ae02d2ea54653b4749 (patch) | |
| tree | 3823f94d9c919f88f05fdfa5f262ea093447e24a /app/[lng]/evcp/(evcp)/bid-projects/layout.tsx | |
| parent | 2acf5f8966a40c1c9a97680c8dc263ee3f1ad3d1 (diff) | |
(김준회) 견적프로젝트 해양 TOP - nonsap(견적물량관리시스템) 데이터 가져오기 추가
Diffstat (limited to 'app/[lng]/evcp/(evcp)/bid-projects/layout.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/bid-projects/layout.tsx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app/[lng]/evcp/(evcp)/bid-projects/layout.tsx b/app/[lng]/evcp/(evcp)/bid-projects/layout.tsx new file mode 100644 index 00000000..9c142df1 --- /dev/null +++ b/app/[lng]/evcp/(evcp)/bid-projects/layout.tsx @@ -0,0 +1,39 @@ +import * as React from "react" +import { BidProjectsContainer } from "@/components/bidding-projects/bid-projects-container" +import { Shell } from "@/components/shell" +import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" + +// Layout 컴포넌트는 서버 컴포넌트입니다 +export default function BidProjectsLayout({ + children, +}: { + children: React.ReactNode +}) { + // 프로젝트 타입 정의 + const projectTypes = [ + { id: "all", name: "전체" }, + { id: "SHIP", name: "조선" }, + { id: "TOP", name: "해양 TOP" }, + { id: "HULL", name: "해양 HULL" }, + ] + + return ( + <Shell className="gap-4"> + <React.Suspense + fallback={ + <DataTableSkeleton + columnCount={6} + searchableColumnCount={1} + filterableColumnCount={2} + cellWidths={["10rem", "40rem", "12rem", "12rem", "8rem", "8rem"]} + shrinkZero + /> + } + > + <BidProjectsContainer projectTypes={projectTypes}> + {children} + </BidProjectsContainer> + </React.Suspense> + </Shell> + ) +}
\ No newline at end of file |
